package gongshw.comic;

import gongshw.comic.conan.C;

public class ComicBook {
	private String name;
	private Chapter[] chptList;
	public ComicBook(String name,String url){
		this.name = name;
		this.chptList = new ComicGetter(name).getChapterIndex(url);
	}
	
	public String getName(){
		return name;
	}
	
	public Chapter[] getChapters(){
		return chptList;
	}
	
	public String[] getChapterTitle(int s,int e){
    	if(e>C.comicBook.getChapters().length-1)
    		e = C.comicBook.getChapters().length-1;
		String [] ca = new String[e-s+1];
		for(int i=s;i<=e;i++){
			ca[i-s] = chptList[i].getChapterName();
		}
		return ca;
	}
}
